home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 2004 August
/
Hrac_72_2004-08_dvd.iso
/
dema
/
Rapid Gun
/
rg_setup.exe
/
common
/
global.fx
< prev
next >
Wrap
Text File
|
2004-04-19
|
2KB
|
75 lines
// LF2 Engine
// (C) 2002-3 7FX
//---------------------------------------------------------------------------
// Desc
string desc : Description = "Global shader, ktery definuje defaultni render states.";
// Shader type global
string type : Type = "global";
//---------------------------------------------------------------------------
// Parameters for global effect
// FillMode - POINT=1, WIREFRAME=2, SOLID=3
int fill_mode : FillMode = 3; // default solid
// CullMode - NONE=1, CW=2, CCW=3
int cull_mode : CullMode = 3; // default CCW - because we have left handed system
// DitherEnable
bool dither_enable : DitherEnable = true;
// FogEnable
bool fog_enable : FogEnable = false;
// FogColor
float4 fog_color : FogColor = {0.f, 0.f, 0.f, 0.f};
// Depth
bool z_enable : ZEnable = true;
bool z_write_enable : ZWriteEnable = true;
// Matrices for fixed function
const matrix cMtxV : View;
const matrix cMtxP : Projection;
//---------------------------------------------------------------------------
technique global_effect
{
// Only one pass
pass p0
<
bool Drawable = false;
>
{
/*MaxAnisotropy[0] = 2;
MaxAnisotropy[1] = 2;
MaxAnisotropy[2] = 2;
MaxAnisotropy[3] = 2;
MaxAnisotropy[4] = 2;
MaxAnisotropy[5] = 2;
MaxAnisotropy[6] = 2;
MaxAnisotropy[7] = 2;*/
// common matrices for one viewport
ViewTransform = <cMtxV>;
ProjectionTransform = <cMtxP>;
ZEnable = <z_enable>;
ZWriteEnable = <z_write_enable>;
ZFunc = LESSEQUAL;
FillMode = <fill_mode>;
ShadeMode = GOURAUD;
AlphaTestEnable = true; // always enabled
AlphaRef = 0;
AlphaFunc = GREATEREQUAL;
AlphaBlendEnable = false;
SrcBlend = ONE;
DestBlend = ZERO;
CullMode = <cull_mode>;
DitherEnable = <dither_enable>;
FogEnable = <fog_enable>;
FogColor = <fog_color>;
SpecularEnable = false;
Lighting = false;
TextureFactor = 0xFFFFFFFF; // default texture factor is white
// do not enable lod bias - fonts are bad!
//MipMapLodBias[0] = -0.5f;
//MipMapLodBias[1] = -0.5f;
}
}